//CHECKSTYLE:OFF

package com.ractoc.opengamefinder.api.serializer;

import com.jme3.network.serializing.Serializer;

/**
 * Registers the beans in the packages supplied with the serializer..
 * @author Mark Schrijver
 * @version 1.0
 */
public class BeanSerializer {

		/**
	 * Translates the provided object into the registered oposite object.
	 * @param beanToTranslate The bean that needs to be translated.
	 * @return The translated bean.
	 */
	public void serialze() throws ClassNotFoundException {
		Class loadedClass = null;
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.vo.AccountVO");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.vo.DownloadableContentVO");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.vo.AvatarVO");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.GetAvatarNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.ChatNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.ChatCreateRoomNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.RegisterNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.ChatLeaveRoomNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.ChatEnterRoomNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.ChatLineNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.messages.network.LoginNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.ChatCreateRoomNetworkMessageResult");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.GetAvatarNetworkMessageResult");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.ChatEnterRoomNetworkMessageResult");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.ChatLeaveRoomNetworkMessageResult");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.LoginResultNetworkMessage");
		Serializer.registerClass(loadedClass, true);
		loadedClass = this.getClass().getClassLoader().loadClass("com.ractoc.opengamefinder.api.results.network.ChatNetworkMessageResult");
		Serializer.registerClass(loadedClass, true);
	}
}
//CHECKSTYLE:ON
